import request from '/@/utils/request'
// 查询流程表单列表
export function listFlowForm(query:object) {
  return request({
    url: '/api/v1/flow/flowForm/list',
    method: 'get',
    params: query
  })
}
// 查询流程表单详细
export function getFlowForm(id:number) {
  return request({
    url: '/api/v1/flow/flowForm/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增流程表单
export function addFlowForm(data:object) {
  return request({
    url: '/api/v1/flow/flowForm/add',
    method: 'post',
    data: data
  })
}
// 修改流程表单
export function updateFlowForm(data:object) {
  return request({
    url: '/api/v1/flow/flowForm/edit',
    method: 'put',
    data: data
  })
}
// 删除流程表单
export function delFlowForm(ids:number[]) {
  return request({
    url: '/api/v1/flow/flowForm/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
